#pragma once
#include <vector>
#include <cstring> // for memcpy

class CustomBinaryStream {

public:
	void write(const void* data, size_t size);
	char* getBuffer();
    std::vector<uint8_t>& getDataRef();// 返回非常量引用
	size_t getByteLength();

private:
	std::vector<uint8_t> buffer;
};
